<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('banner/index')}">banner列表</a></li>
        <li><a href="{:url('banner/add')}">添加banner</a></li>
    </ul>
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="50">ID</th>
                <th>图片</th>
                <th>链接地址</th>
                <th width="50">{:lang('SORT')}</th>
                <th>model</th>
                <th>备注</th>
                <th>添加时间</th>
                <th>{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="banner" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td><img style="width:150px;height:70px;" src="{$vo['img']}" alt=""></td>
                    <td><a href="{$vo.url}" target="_blank">{$vo.url}</a></td>
                    <td>{$vo.sort}</td>
                    <td>{$vo.model}</td>
                    <td>{$vo.remark}</td>
                    <td>{$vo.addtime}</td>
                    <td>
                        <a class="btn btn-xs btn-primary" href="{:url('banner/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
                        <a class="btn btn-xs btn-danger" href="{:url('banner/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">
                            {:lang('DELETE')}
                        </a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page|default=''}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>